package models;

import play.db.jpa.GenericModel;
import play.db.jpa.Model;
import play.data.validation.Required;
import play.data.validation.MaxSize;

import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


/**
 * Model Tesis generated by Play!
 */

@Entity
@Table(name="TESIS")
public class Tesis extends GenericModel {
	
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_TESIS")
	@SequenceGenerator(name="SEQ_TESIS", sequenceName="SEQ_TESIS", allocationSize=1)
	private long idtesis;
    @Required
    @MaxSize(150)
    public String tema;
    @Required
    public BigDecimal asignada;
    //@OneToMany(mappedBy="TESIS")  
    //public Set<DocenteTesis> docenteTesises = new HashSet<DocenteTesis>(0);

    //default constructor 
    public Tesis() {
    }
    public Tesis(long idtesis) {
     	this.idtesis = idtesis;
    }
   


}


